<include file="Common/common" />

<body class="custom-background-image1">

    
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header header header-demo">
            <a class="logo" href="/admin.php">
                <img src="/public/img/3.jpg" alt="layui">
            </a>
            <!-- <div class="layui-logo">后台管理</div> -->
            <!-- 头部区域（可配合layui已有的水平导航） -->
            
            <ul class="layui-nav layui-layout-right" style="padding-right: 10px;">
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <img id="header-img" src="/public/img/3.jpg" class="layui-nav-img">
                        <span id="header-nickname">{$adminInfo['account']}</span>
                    </a>

                    <dl class="layui-nav-child">
                        <dd><a href="{:U('/admin.php/Common/logout')}">安全退出</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                

                <ul class="layui-nav layui-nav-tree"  lay-filter="">
                    <li class="layui-nav-item">
                        <a href="{:U('/admin.php/User/user')}" class="remove" target="rightFrame">用户管理</a>
                    </li>

                    <li class="layui-nav-item">
                        <a href="{:U('/admin.php/Order/order')}" class="remove" target="rightFrame">申请任务</a>
                    </li>

                    <li class="layui-nav-item">
                        <a href="{:U('/admin.php/News/news')}" class="remove" target="rightFrame">新闻公告</a>
                    </li>

                    <li class="layui-nav-item">
                        <a href="{:U('/admin.php/News/feedback')}" class="remove" target="rightFrame">留言反馈</a>
                    </li>

                    <li class="layui-nav-item">
                        <a href="javascript:;">报表管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="{:U('/admin.php/Record/task')}" class="remove" target="rightFrame">任务积分报表</a></dd>
                            <dd><a href="{:U('/admin.php/Record/center')}" class="remove" target="rightFrame">中心积分报表</a></dd>
                            <dd><a href="{:U('/admin.php/Record/trading')}" class="remove" target="rightFrame">交易积分报表</a></dd>
                            <dd><a href="{:U('/admin.php/Record/keytask')}" class="remove" target="rightFrame">任务秘钥报表</a></dd>
                            <dd><a href="{:U('/admin.php/Record/keydynamic')}" class="remove" target="rightFrame">动态秘钥报表</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item">
                        <a href="{:U('/admin.php/Index/setting')}" class="remove" target="rightFrame">参数设置</a>
                    </li>

                    <li class="layui-nav-item">
                        <a href="javascript:;">购置管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="{:U('/admin.php/Order/buycenter')}" class="remove" target="rightFrame">购置交易积分</a></dd>
                            <dd><a href="{:U('/admin.php/Order/buykey')}" class="remove" target="rightFrame">购置秘钥</a></dd>
                        </dl>
                    </li>
                    
                </ul>
            </div>
        </div>

        <div class="layui-body" style="bottom: 0;">
            <!-- 内容主体区域 -->
            
            <iframe id="rightFrame" name="rightFrame" src="{:U('/admin.php/User/user')}" style="overflow: visible;" scrolling="auto" frameborder="0"   width="100%" height="99%"></iframe>
        
        </div>

        <!-- <div class="layui-footer">
            底部固定区域
            © 项目名称
        </div> -->
        <div class="site-tree-mobile layui-hide">
            <i class="layui-icon">&gt;</i>
        </div>
        <div class="site-mobile-shade"></div>
    </div>

    

</body>

<script>

    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function(){
        //实例化element
        var element = layui.element;

        //初始化动态元素，一些动态生成的元素如果不设置初始化，将不会有默认的动态效果
        element.init();

    });

    $('.site-tree-mobile').click(function(){
        $('body').addClass('site-mobile');
    });

    $('.site-mobile-shade').click(function(event) { 
        removeMobile();
    });

    $('.remove').click(function(event) {
        setTimeout(function(){removeMobile();}, 800);
        
    });

    function removeMobile(){
        $('body').removeClass('site-mobile');
    }

    

    function renderForm(){
        layui.use('form', function(){
            var form = layui.form;
            form.render();
        });
    }

    
</script>
